﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
           xmlns:local="clr-namespace:QuizSilverlight"
    mc:Ignorable="d" xmlns:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions" x:Class="QuizSilverlight.MainPage" Loaded="UserControl_Loaded" Height="367" Width="700.5">
	<UserControl.Resources>
		<Storyboard x:Name="QuizStoryboard">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="participantForm" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationX)">
				<EasingDoubleKeyFrame KeyTime="00:00:01" Value="90"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="quizForm" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationX)">
				<EasingDoubleKeyFrame KeyTime="00:00:01" Value="-90"/>
				<EasingDoubleKeyFrame KeyTime="00:00:02" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="validateButton" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
				<EasingDoubleKeyFrame KeyTime="00:00:02" Value="41"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="validateButton" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
				<EasingDoubleKeyFrame KeyTime="00:00:02" Value="33"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
    <Grid x:Name="LayoutRoot">
    	    	<StackPanel x:Name="stackPanel" Margin="0,0,2,8" RenderTransformOrigin="0.5,0.5">
    	    		<StackPanel.RenderTransform>
    	    			<TransformGroup>
    	    				<ScaleTransform/>
    	    				<SkewTransform/>
    	    				<RotateTransform/>
    	    				<TranslateTransform/>
    	    			</TransformGroup>
    	    		</StackPanel.RenderTransform>
    		<StackPanel.Background>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="Black" Offset="0"/>
    				<GradientStop Color="White" Offset="1"/>
    				<GradientStop Color="Black" Offset="0.004"/>
    			</LinearGradientBrush>
    		</StackPanel.Background>
    		<local:ParticipantForm x:Name="participantForm" Margin="71,35,200,35" Height="168" RenderTransformOrigin="0.5,0.5">
    			<local:ParticipantForm.Effect>
    				<DropShadowEffect BlurRadius="69" Opacity="0.52" ShadowDepth="30"/>
    			</local:ParticipantForm.Effect>
    			<local:ParticipantForm.RenderTransform>
    				<TransformGroup>
    					<ScaleTransform/>
    					<SkewTransform/>
    					<RotateTransform/>
    					<TranslateTransform/>
    				</TransformGroup>
    			</local:ParticipantForm.RenderTransform>
    			<local:ParticipantForm.Projection>
    				<PlaneProjection/>
    			</local:ParticipantForm.Projection>
    		</local:ParticipantForm>
    		<Button x:Name="validateButton" Height="34" HorizontalAlignment="Right" Margin="0,0,112,0" Width="138" Content="Valider Informations" Click="Button_Click" RenderTransformOrigin="0.5,0.5">
    			<Button.RenderTransform>
    				<TransformGroup>
    					<ScaleTransform/>
    					<SkewTransform/>
    					<RotateTransform/>
    					<TranslateTransform/>
    				</TransformGroup>
    			</Button.RenderTransform>
    		</Button>
    	
                   
        </StackPanel>
    	    	<local:QuizForm x:Name="quizForm" Margin="80,8,221,59">
    	    		<local:QuizForm.Projection>
    	    			<PlaneProjection RotationX="-90"/>
    	    		</local:QuizForm.Projection>
    	    	</local:QuizForm>
    	    	
      </Grid>
</UserControl>
